﻿/// <reference path="../../libs/typedMVVM/include/win.ts" />
/// <reference path="../../viewModels/ViewModelFactory.ts" />
/// <reference path="../../services/SampleService.ts" />

module TypedMVVM.Samples.Views {
    "use strict";

    class HomeView implements TypedMVVM.Common.Views.ICoreView {
        ready = (element: HTMLElement, options: HTMLOptionElement) => {
            // Initialize the page here.
            var viewModel = Samples.ViewModels.ViewModelFactory.homeViewModel;

            WinJS.Binding.processAll(element, viewModel, false, null, null);

            viewModel.loadData();
        }
    }

    WinJS.UI.Pages.define("./views/home/HomeView.html", new HomeView());   
}
